package shiyan;
import java.text.DecimalFormat;
import java.util.Scanner;
public class MaxGrade {
   public static void main(String[] args) {
      Scanner sc=new Scanner(System.in);
      String b=sc.nextLine();
      String[] bb=b.split(" ");
      int a[]=new int[bb.length];
      int max=0,min=200;
      int count=0,sum=0;
      double vag;
      for (int i=0;i<a.length;i++){
         a[i]=(Integer.parseInt(bb[i])) ;
      }
      for (int i=0;i<a.length;i++){
         if (a[i]>max){
            max=a[i];
            count=1;
         }else if (max==a[i]){
            count++;
         }
         if (a[i]<min){
            min=a[i];
         }
         sum+=a[i];
      }
      vag=((double)sum/(double)a.length);
      DecimalFormat df=new DecimalFormat("#0.00");
      String result=df.format(vag);
      System.out.println("最高分:"+max+",最低分:"+min+"平均分:"+result+"同时存在"+count+"个并列最高分");
   }
}
